﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/MIOS_Manager.master" AutoEventWireup="true" CodeFile="AddCategory.aspx.cs" Inherits="Manager_Addcategory" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxLoadingPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHeadline" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCloudControl" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" 
        CssFilePath="~/App_Themes/Silver/{0}/styles.css" CssPostfix="Silver" 
        ImageFolder="~/App_Themes/Silver/{0}/" ShowDefaultImages="False" 
        ShowHeader="False">
        <BottomRightCorner Height="10px" 
            Url="~/App_Themes/Silver/Web/rpBottomRightCorner.gif" Width="6px">
        </BottomRightCorner>
        <Border BorderColor="#D7D7D7" BorderStyle="Solid" BorderWidth="1px" />
        <BottomEdge>
            <BackgroundImage ImageUrl="~/App_Themes/Silver/Web/rpBottomBack.gif" 
                Repeat="RepeatX" />
        </BottomEdge>
        <TopRightCorner Height="6px" Url="~/App_Themes/Silver/Web/rpTopRightCorner.gif" 
            Width="6px">
        </TopRightCorner>
        <BorderBottom BorderWidth="0px" />
        <PanelCollection>
<dx:PanelContent runat="server">
    &nbsp;<asp:Image ID="Image6" runat="server" ImageUrl="~/Images/category.jpg" 
        Height="22px" Width="28px" />
    &nbsp;
    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="添加乐器类" ForeColor="#660000" Font-Size="Large">
    </dx:ASPxLabel>
        </dx:PanelContent>
</PanelCollection>
        <TopLeftCorner Height="6px" Url="~/App_Themes/Silver/Web/rpTopLeftCorner.gif" 
            Width="6px">
        </TopLeftCorner>
        <BackgroundImage ImageUrl="~/App_Themes/Silver/Web/rpContentBack.gif" 
            Repeat="RepeatX" />
        <BottomLeftCorner Height="10px" 
            Url="~/App_Themes/Silver/Web/rpBottomLeftCorner.gif" Width="6px">
        </BottomLeftCorner>
    </dx:ASPxRoundPanel>
    <dx:ASPxTreeList ID="ASPxTreeList1" runat="server" Width="100%" 
        CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" CssPostfix="SoftOrange" 
        DataSourceID="SqlDataSource1" AutoGenerateColumns="False" 
        onnodeinserted="ASPxTreeList1_NodeInserted" KeyFieldName="categoryID"  
        ParentFieldName="parentID">
        <Styles CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" 
            CssPostfix="SoftOrange">
        </Styles>
        <Images SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css">
            <LoadingPanel Url="~/App_Themes/SoftOrange/TreeList/Loading.gif">
            </LoadingPanel>
        </Images>
        <SettingsLoadingPanel ImagePosition="Top" />
        <Settings SuppressOuterGridLines="True" />
        <SettingsEditing AllowNodeDragDrop="True" />
        <Columns>
            <dx:TreeListTextColumn FieldName="name" VisibleIndex="0" Caption="名称">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn FieldName="orderBy" VisibleIndex="1" Caption="排序">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn VisibleIndex="2" Caption="描述" FieldName="description">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn FieldName="parentName" VisibleIndex="3" Caption="父类">
            </dx:TreeListTextColumn>
            <dx:TreeListCommandColumn Caption="操作" VisibleIndex="4">
                <EditButton Visible="True">
                </EditButton>
                <NewButton Visible="True">
                </NewButton>
                <DeleteButton Visible="True">
                </DeleteButton>
            </dx:TreeListCommandColumn>
        </Columns>
    </dx:ASPxTreeList>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MIOSConnectionString %>" 
        
        
        SelectCommand="SELECT [categoryID], [name], [orderBy], [description], [parentID], [parentName] FROM [View_Category]">
    </asp:SqlDataSource>
    
    	
</asp:Content>

